@import './variables.scss';

// login page
.login {
  height: 100%;
  width: 100%;
  position: relative;
  background: #2d3a4b;

  .login-form {
    width: 370px;
    height: 350px;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    margin: auto;

    .el-input {
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-radius: 6px;
    }

    input {
      background: rgba(0, 0, 0, 0);
      border: none;
      box-shadow: 0 0 0px 1000px #293444 inset !important;
      color: white;
      font-size: 14px;
      background: rgba(0, 0, 0, 0);
      border: 0px;
      -webkit-appearance: none;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
      box-shadow: 0 0 0px 1000px #293444 inset !important;
      -webkit-text-fill-color: rgb(255, 255, 255) !important;
      background: rgba(41, 52, 68, 1) !important;
      font-size: 14px;
    }
  }

  .login-form .title {
    font-size: 26px;
    color: #eee;
    margin: 0px auto 40px auto;
    text-align: center;
    font-weight: bold;
  }

  .tabs-bar {
    background: rgb(45, 58, 75);

    .tabs-tab {
      width: 50%;
      box-sizing: border-box;
      text-align: center;
      padding: 10px;
      background: rgb(45, 58, 75);
      color: white;
      border: none;
      border-right: 1px solid white;
      font-weight: 400;

      &:nth-last-child(1) {
        border-right: none;
      }
    }

    .tabs-tab-active {
      color: rgb(51, 153, 255);
      border-top: none;
      border-bottom: 1px solid rgb(51, 153, 255);

      &::before {
        height: 0;
      }
    }
  }
}

// error page
.err-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  background-color: rgb(240, 242, 245);

  .wscn-http404 {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    min-width: 1200px;
    min-height: 650px;
    box-sizing: border-box;
    margin: auto;
    overflow: hidden;

    .pic-404 {
      position: relative;
      float: left;
      width: 60%;
      height: 100%;
      padding: 150px 0;
      box-sizing: border-box;
      overflow: hidden;
      text-align: right;
      vertical-align: middle;

      &__parent {
        width: 100%;
        max-width: 700px;
        max-height: 400px;
      }

      &__child {
        position: absolute;

        &.left {
          width: 80px;
          top: 17px;
          left: 220px;
          opacity: 0;
          animation-name: cloudLeft;
          animation-duration: 2s;
          animation-timing-function: linear;
          animation-fill-mode: forwards;
          animation-delay: 1s;
        }

        &.mid {
          width: 46px;
          top: 10px;
          left: 420px;
          opacity: 0;
          animation-name: cloudMid;
          animation-duration: 2s;
          animation-timing-function: linear;
          animation-fill-mode: forwards;
          animation-delay: 1.2s;
        }

        &.right {
          width: 62px;
          top: 100px;
          left: 500px;
          opacity: 0;
          animation-name: cloudRight;
          animation-duration: 2s;
          animation-timing-function: linear;
          animation-fill-mode: forwards;
          animation-delay: 1s;
        }

        @keyframes cloudLeft {
          0% {
            top: 17px;
            left: 220px;
            opacity: 0;
          }

          20% {
            top: 33px;
            left: 188px;
            opacity: 1;
          }

          80% {
            top: 81px;
            left: 92px;
            opacity: 1;
          }

          100% {
            top: 97px;
            left: 60px;
            opacity: 0;
          }
        }

        @keyframes cloudMid {
          0% {
            top: 10px;
            left: 420px;
            opacity: 0;
          }

          20% {
            top: 40px;
            left: 360px;
            opacity: 1;
          }

          70% {
            top: 130px;
            left: 180px;
            opacity: 1;
          }

          100% {
            top: 160px;
            left: 120px;
            opacity: 0;
          }
        }

        @keyframes cloudRight {
          0% {
            top: 100px;
            left: 500px;
            opacity: 0;
          }

          20% {
            top: 120px;
            left: 460px;
            opacity: 1;
          }

          80% {
            top: 180px;
            left: 340px;
            opacity: 1;
          }

          100% {
            top: 200px;
            left: 300px;
            opacity: 0;
          }
        }
      }

      .pic-404__parent {
        display: inline-block;
      }
    }

    .bullshit {
      position: relative;
      float: left;
      width: 40%;
      height: 100%;
      padding: 150px 0;
      box-sizing: border-box;
      overflow: hidden;

      .bullshit-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        overflow: hidden;
        width: 100%;
        height: 220px;
      }

      &__oops {
        font-size: 32px;
        font-weight: bold;
        line-height: 40px;
        color: #1482f0;
        opacity: 0;
        margin-bottom: 20px;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-fill-mode: forwards;
      }

      &__headline {
        font-size: 20px;
        line-height: 24px;
        color: #1482f0;
        opacity: 0;
        margin-bottom: 10px;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-delay: 0.1s;
        animation-fill-mode: forwards;
      }

      &__info {
        font-size: 13px;
        line-height: 21px;
        color: grey;
        opacity: 0;
        margin-bottom: 30px;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-delay: 0.2s;
        animation-fill-mode: forwards;
      }

      &__return-home {
        display: block;
        float: left;
        width: 110px;
        height: 36px;
        background: #1482f0;
        border-radius: 100px;
        text-align: center;
        color: #ffffff;
        opacity: 0;
        font-size: 14px;
        line-height: 36px;
        cursor: pointer;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-delay: 0.3s;
        animation-fill-mode: forwards;
      }

      @keyframes slideUp {
        0% {
          transform: translateY(60px);
          opacity: 0;
        }

        100% {
          transform: translateY(0);
          opacity: 1;
        }
      }
    }
  }
}

// index page
.welcome-title {
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;
  margin: auto;
  width: 310px;
  height: 40px;
  text-align: center;
}



// slider com
.slider {
  overflow: hidden;
  position: relative;
  overflow-y: scroll;
  background: rgba(49, 71, 144, 1);

  .slider-logo {
    text-align: center;
    width: 80%;
    margin: auto;
    padding: 13px 0 10px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(248, 249, 251, 1);
    margin-bottom: 10px;
    cursor: pointer;

    img {
      width: 60px;
      height: 60px;
      display: inline-block;
    }

    h3 {
      color: white;
      width: 130px;
    }
  }

  .slider-collapse {
    line-height: 20px;
    display: block;
    width: 20px;
    height: 20px;
    color: white;
    position: absolute;
    z-index: 2;
    right: -7px;
    cursor: pointer;
    top: 0;
  }

  .el-menu {
    width: 100%;
    background: rgba(49, 71, 144, 1);
    transition: all 0.05s ease-out;
    border-right: 1px solid rgba(49, 71, 144, 1);
  }

  .el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 150px;
    min-height: 200px;
  }

  .router-name {
    display: inline-block;
    height: 56px;
    line-height: 56px;
    font-size: 15px;
  }

  .iconfont {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 5px;
    font-size: 16px;
    position: relative;
    top: 0px;
    color: white;
  }

}


// ue-ditor
.ue-ditor {
  .w-e-text-container {
    z-index: 10 !important;
  }

  .w-e-menu {
    z-index: 11 !important;
  }
}

// upload com
.upload-img {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 80px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;

  .upload-list {
    width: 80px;
    height: 80px;
    border: 1px solid rgb(192, 204, 218);
    background-color: rgba(251, 253, 255, 1);
    margin: 0 10px 10px 0;
    border-radius: 3px;
    display: flex;
    align-content: center;
    position: relative;
    transition: all ease 0.2s;
  }

  .upload-list:hover .opr-wrapper {
    display: block;
    background: rgba(119, 119, 119, 0.7);
  }

  .img-list {
    font-size: 12px;
    color: rgb(151, 168, 190);
    width: 100%;
    height: 100%;
    border-radius: 3px;
    object-fit: cover;
  }

  .upload-list .opr-wrapper {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    z-index: 2;
    transition: all .2s ease-in-out;
  }

  .upload-list .opr-wrapper .up-edit i:hover {
    font-weight: bold;
    transition: all .2s ease-in-out;
  }

  .upload-list .opr-wrapper .up-edit i.disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: inherit;
  }

  .upload-list span {
    display: inline-block;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .upload-list span i {
    display: inline-block;
    margin: 0 3px;
    line-height: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
  }

  .upload-file {
    display: none;
  }

  .add-upload {
    width: 80px;
    height: 80px;
    border: 1px dashed rgb(192, 204, 218);
    /* background-color: rgba(251, 253, 255); */
    margin-bottom: 10px;
    border-radius: 3px;
    display: flex;
    align-content: center;
    position: relative;
    transition: all ease 0.2s;
    box-sizing: border-box;
  }

  .add-upload:hover {
    border: 1px dashed rgb(64, 158, 255);
  }

  .add-upload div.opr-wrapper {
    background: rgba(255, 255, 255, 1);
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 3px;
    z-index: 2;
  }

  .add-upload div.is-single {
    background: rgba(255, 255, 255, 0);
  }

  .add-upload div.opr-wrapper span {
    cursor: pointer;
    display: inline-block;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s ease-out;
  }

  .add-upload div.is-single:hover .up-add {
    /* background: rgba(0, 0, 0, 0.5); */
    background: rgba(117, 117, 117, 0.5);
    color: white;
  }

  .add-upload div.is-single:hover span i {
    color: white;
  }

  .add-upload span i {
    display: inline-block;
    line-height: 20px;
    font-size: 30px;
    color: rgb(140, 147, 157);
  }

  .add-upload .uploading {
    color: white;
    background: rgba(117, 117, 117, 0.5);
  }

  .add-upload .uploading i {
    color: white;
  }
}

.single-upload {
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100px;
  height: 100px;

  .el-upload {
    width: 100px;
    height: 100px;
    border-radius: 3px;
  }

  .upload-icon {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
  }

  .single-up-img {
    display: block;
    width: 95%;
    height: 95%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 2;
    border-radius: 3px;

    img {
      width: 100%;
      height: 100%;
    }

    &:hover {
      .opr-wrap {
        display: block;
        transition: all .2s ease-in-out;
      }
    }

    .opr-wrap {
      display: none;
      position: absolute;
      width: 100%;
      height: 100%;
      background: rgba(119, 119, 119, 0.7);
      border-radius: 3px;

      p {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 30px;
        margin-top: 30px;
      }

      i {
        color: white;
        font-size: 18px;
        color: rgb(255, 255, 255);
        margin: 0 3px;
      }
    }
  }
}

.product {
  display: flex;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;

  .product-img {
    width: 70px;
    height: 70px;
    overflow: hidden;
  }

  .product-img-small {
    width: 50px;
    height: 50px;
  }

  .product-word {
    overflow: hidden;
    flex: 1;

    .click-ele {
      text-align: left;
      width: 100%;
      height: 100%;
    }
  }
}

.upload-video {
  display: flex;
  justify-content: flex-start;

  .have-video {
    width: 120px;
    height: 80px;
    border-radius: 3px;
    margin-right: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgb(192, 204, 218);

    &:hover {
      .paly-btn {
        display: block;
      }
    }

    .paly-btn {
      height: 100%;
      width: 100%;
      border-radius: 3px;
      position: absolute;
      top: 0;
      left: 0;
      background: rgba(0, 0, 0, .2);
      text-align: center;
      display: none;

      i {
        cursor: pointer;
        color: rgb(255, 255, 255);
        font-size: 20px;
        line-height: 80px;

        &:nth-child(2) {
          margin-left: 4px;
        }
      }
    }

    video {
      object-fit: cover;
    }
  }

  .upload-progress {
    width: 80px;
    height: 80px;
    display: flex;

    .el-progress-circle {
      margin: auto;
    }
  }

  .upload-file {
    border-radius: 3px;
    height: 80px;
    width: 80px;
    border: 1px dashed rgb(192, 204, 218);
    overflow: hidden;
    position: relative;

    .up-add {
      cursor: pointer;
      background: rgb(251, 253, 255);
      color: rgb(140, 147, 157);
      position: absolute;
      top: 0;
      left: 0;
      display: block;
      width: 100%;
      height: 100%;
      font-size: 20px;
      line-height: 80px;
      text-align: center;
    }
  }
}

.play-video {

  video {
    object-fit: contain;
    outline: none;
    background: rgb(0, 0, 0);
    padding: 20px 0px;
  }
}

// 添加修改 表单
$FormMaxWidth: 470px;

.page-form {
  max-width: 800px;
  margin-left: 30px;

  .el-select {
    max-width: $FormMaxWidth;
    width: 100%;
  }

  .el-input {
    max-width: $FormMaxWidth;
  }

  .el-textarea {
    max-width: ($FormMaxWidth + 200);
  }

  .page-form-item {
    max-width: $FormMaxWidth;
  }

  .hidden-input {
    visibility: hidden;
    height: 0px;
    position: absolute;
  }

  .answer-list {
    display: flex;
    margin-bottom: 5px;

    &:nth-last-child(1) {
      margin-top: 10px;
      margin-bottom: 0px;
    }

    .answer-label {
      width: 65px;
      color: rgb(96, 98, 102);
    }

    .answer-right {
      width: 100px;
      text-align: right;
    }
  }

  .topic-title {
    color: rgb(0, 0, 0);
    word-break: break-all;
  }

  .answer {
    margin-left: 20px;
    display: flex;
    justify-content: flex-start;

    .right-answers {
      margin-left: 50px;
    }
  }

  .score {
    margin-left: 20px;
  }

  .form-tips {
    color: rgba(230, 162, 60, .7);
    font-size: 12px;
    line-height: 20px;
    position: absolute;
    right: 190px;
  }
}

.input-with-select {
  width: 300px !important;

  .el-input-group__prepend {
    padding: 0 !important;
  }

  .el-select {
    height: 34px;
    width: 100px;
    margin: 0 !important;
    box-sizing: border-box;

    .el-input {
      width: 100%;
    }

    .el-input__inner {
      width: 100%;
    }
  }
}

.order-detail-product {
  border: 1px solid rgb(235, 238, 245);
  box-sizing: border-box;

  tbody tr:hover>td {
    background-color: inherit !important;
  }
}

.text-center {
  input {
    text-align: center !important;
  }

  .el-input__inner {
    text-align: center !important;
  }
}

.freight-model-form {
  .el-table {
    .hide-row {
      display: none;
    }
  }
}

.product-price-reg {
  .product-price-radio {
    position: relative;
    margin-bottom: 22px;
  }

  .is-error-msg {
    position: absolute;
    color: rgb(245, 108, 108);
    font-size: 12px;
    line-height: 1;
    position: absolute;
    left: 0;
    bottom: -16px;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
    display: none;
  }

  .is-radio-error {
    .is-error-msg {
      display: block;
    }

    .el-input__inner {
      border-color: red;
    }
  }
}

.app-wrapper .el-textarea .el-input__count {
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  bottom: -8px;
}